<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        const arr = [
            {
                name: '小米',
                price: 2999
            },
            {
                name: '华为',
                price: 3999
            }

        ];
        const mi = arr.find(item => {
            console.log(11);
            return item.name === '小米';

        });
        console.log(mi);
    </script>
</body>

</html>